const Router = require('koa-router')
const {auth} = require('../middleware/auth.middleware')
const {getCommentList, deleteComment} = require('../controller/commentController')

const commentRouter = new Router({prefix: '/comment'})


commentRouter.get('/list', auth, getCommentList)

commentRouter.delete('/delete/:id', auth, deleteComment)

module.exports = commentRouter;
